package com.bilibili.myblogbackend.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bilibili.myblogbackend.dto.po.Article;
import com.bilibili.myblogbackend.dto.vo.ArticleVO;
import com.bilibili.myblogbackend.mapper.ArticleMapper;
import com.bilibili.myblogbackend.service.IArticleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LBy
 * @since 2024-12-01
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {

    @Override
    public String test() {
        return "测试成功";
    }

    @Override
    public List<ArticleVO> getLatestArticle() {


        return null;
    }

    @Override
    public List<ArticleVO> getAllArticle() {

        return null;
    }
    private List<Article> getAll(){
        return this.lambdaQuery().orderByAsc(Article::getCreateTime).list();
    }
}
